//
//  UIImage+Filter.h
//  KKShopping
//
//  Created by Albert Lee on 8/1/13.
//  Copyright (c) 2013 KiDulty. All rights reserved.
//

#import <UIKit/UIKit.h>
enum {
  CurveChannelNone         = 0,
  CurveChannelRed					 = 1 << 0,
  CurveChannelGreen				 = 1 << 1,
  CurveChannelBlue				 = 1 << 2,
};
typedef NSUInteger CurveChannel;
@interface UIImage (Filters)
- (UIImage*)saturateImage:(float)saturationAmount withContrast:(float)contrastAmount;

- (UIImage*) vignetteFilterWithCIContext:(CIContext *)context;
- (UIImage *)filterWithName:(NSString *)filterName andCIContext:(CIContext *)context;
- (UIImage *)blurryImageWithLevel:(CGFloat)blur;
@end